feat(postcodes/UY): 1,964 Correo Uruguayo codes (#1039)#1532
Merged
Conversation
Adds Uruguay's 5-digit postal codes from the ale-uy/CPuy Apache-2.0 SQLite mirror. Why --- Closes the UY gap on issue #1039. Source is a comprehensive SQLite db with departamento + localidad + código_postal joined. Coverage -------- - 1,964 codes / 100% state FK - All 19 CSC UY departments covered State FK strategy ----------------- ASCII-fold + name match against CSC UY states. All 19 source departments match CSC names verbatim under NFKD fold (handles PAYSANDU -> Paysandú, RIO NEGRO -> Río Negro, etc.). Source pipeline --------------- 1. Fetch SQLite db via urllib (151 KB) 2. Parse with stdlib sqlite3 (no extra deps) 3. Title-case uppercase locality names for display License ------- ale-uy/CPuy: Apache-2.0. Upstream: Correo Uruguayo public lookup. Each row: source: "correo-uruguayo-via-ale-uy" Validation ---------- - python3 -m py_compile passes - 100% regex match (^\d{5}$) - 100% state_id valid + state.country_id == 235 + state_code agrees - No auto-managed fields (id, created_at, updated_at, flag) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
CSC Validation ReportPR Format
Labels applied:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Source
ale-uy/CPuy— Apache-2.0db(SQLite, 151 KB)State FK strategy
ASCII-fold + name match against CSC UY states. All 19 source departments match CSC names verbatim under NFKD fold (handles
PAYSANDU→ Paysandú,RIO NEGRO→ Río Negro, etc.).Pipeline
sqlite3(no extra deps)Distribution (top 5)
All 19 departments covered.
Test plan
python3 -m py_compile bin/scripts/sync/import_uruguay_postcodes.py^\d{5}$🤖 Generated with Claude Code